#include<iostream>
#include"comm.hpp"
using namespace std;
int main()
{
//int mkfifo(const char* name,mode_t mode);
  
  int fd = open(FIFO_FILE,O_WRONLY);
  if(fd < 0)
  {
    perror("open"); 
    exit(1);
  }
  string line;
  while(1)  {
    cout << "Please Enter@";
    //  cin >> line;
    getline(cin,line);
    write(fd,line.c_str(),line.size());
  }
  close(fd);
  return 0;
}
